package com.bigdatastudio.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * <h2>对象存储</h2>
 *
 * @author 彭子
 * @version 1.0
 */

@Data
@AllArgsConstructor
@TableName("ow_oss")
public class Oss {
    /**
     * <h3>版本控制</h3>
     */
    private static final long serialVersionUID = 1L;
    /**
     * <h3>编号</h3>
     */
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull
    private Integer id;

    /**
     * <h3>对象名称</h3>
     */
    private String ossName;

    /**
     * <h3>存储路径</h3>
     */
    private String ossPath;

    /**
     * <h3>公告标识</h3>
     */
    private String ossNoticeFlag;

    /**
     * <h3>公告编号</h3>
     */
    private int ossNoticeId;

    /**
     * <h3>创建人</h3>
     */
    private String  createName;

    /**
     * <h3>创建时间</h3>
     */
    private LocalDateTime createTime;

    /**
     * <h3>更新人</h3>
     */
    private String  updateName;

    /**
     * <h3>更新时间</h3>
     */
    private LocalDateTime updateTime;

    /**
     * <h3>逻辑删除(1:已删除，0:未删除)</h3>
     */
    private boolean isDelete;

    /**
     * <h3>备注</h3>
     */
    private String remark;

    public Oss(String ossPath, String ossNoticeFlag, int ossNoticeId, String createName) {
        this.ossPath = ossPath;
        this.ossNoticeFlag = ossNoticeFlag;
        this.ossNoticeId = ossNoticeId;
        this.createName = createName;
    }

    public Oss() {
    }
}
